/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cratos.xxgramoss.message;

import com.cratos.xxgramoss.base.BaseBean;
import org.redkale.source.FilterBean;
import org.redkale.source.FilterColumn;
import org.redkale.source.FilterExpress;
import org.redkale.source.Range;
import org.redkale.util.Comment;

/**
 *
 * @author Dell
 */
public class MessageRecordHisBean extends BaseBean implements FilterBean{
    
    @Comment("发送人")   
    private int fromid;
    
    @Comment("接收人")
    private int targetid;
    
    @FilterColumn(express = FilterExpress.LIKE, comment = "关键词")
    private String content;
    
    private short msgkind;
    @FilterColumn(express = FilterExpress.LESSTHANOREQUALTO)
    private short msgtype;
    @FilterColumn(express = FilterExpress.LESSTHAN)
    private short del = 50;
    
    protected Range.LongRange createtime;
    
    public Range.LongRange getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Range.LongRange createtime) {
        this.createtime = createtime;
    }
    
    public int getFromid() {
        return fromid;
    }

    public void setFromid(int fromid) {
        this.fromid = fromid;
    }
    
    public int getTargetid() {
        return targetid;
    }

    public void setTargetid(int targetid) {
        this.targetid = targetid;
    }
    
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    
    public void setMsgkind(short msgkind) {
        this.msgkind = msgkind;
    }

    public short getMsgkind() {
        return this.msgkind;
    }
    
    public short getMsgtype() {
        return msgtype;
    }

    public void setMsgtype(short msgtype) {
        this.msgtype = msgtype;
    }
    
    public short getDel() {
        return del;
    }

    public void setDel(short del) {
        this.del = del;
    }
}
